package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.RbacManagerEntity;

import java.util.List;
import java.util.Set;

public interface RbacManagerDao {

    int addOne(RbacManagerEntity rbacManagerEntity);

    int delete(int id);

    List<RbacManager> findAll();
    List<RbacManager> findAllByType(RbacManager rbacManager);
    int update(RbacManagerEntity rbacManagerEntity);

    String findPassword(String username);

    RbacManager findManager(String username);

    Set<String> findRolesById(int id);
}
